package com.horsen.service.aliyun.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 从配置文件获取OSS配置
 *
 * @author Horsen
 */
@Data
@Component
// prefix要写到最后一个"."符号之前
@ConfigurationProperties(prefix = "aliyun.oss")
public class OSSProperties {
    private String endpoint;
    private String keyid;
    private String keysecret;
    private String bucketname;
}
